#定义计数器
# num = 1
# while num <= 100:
#     print("我从河南来 带着胡辣汤!")
#     num += 1

#while循环：实现0-100累加求和
# num = 0
# result = 0
# while num <= 100:
#     result += num
#     num += 1
#     print(f"0-100增加求和结果:{result}")

#while循环中的break
# num = 1
# while num <= 5:
#     print(f"吃了第{num}个苹果")
#     if num == 3:
#         print("吃饱了，后面的不吃了")
#         break
#     num += 1


# result = 0
# for i in range(0,101,2):
#     result += i
#     print(result)

# result = 0
# for i in range(101):
#     if i % 2 == 0:
#         result += i
#         print(result)
